<template>
  <a-select v-model:value="value" placeholder="请选择密级" :options="secOptions" @change="handleChange"/>
</template>
<script setup name="SecSelect">
import secLevelUtil from "@/utils/secLevelUtil";

const secOptions = secLevelUtil.secObjectList()

defineProps(["value"])

const emit = defineEmits(["update:value"])

const handleChange = (value) => {
	console.log(`selected ${value}`);
	emit("update:value",value);
};
</script>
